/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-01-12 09:56:40
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-03-15 17:57:01
 * @FilePath: \cxl-h5\src\apis\city\index.ts
 */
import { request as axios } from '@/axios/index'

/**
 * 根据父级id获取下级城市列表
 * @param parentId
 * @returns
 */
export const getCityByParentId = (parentId: string) => {
    return axios({
        method: 'get',
        url: '/api/system/city/listByParentId/',
        params: { parentId }
    })
}

/**
 * 根据关键字查询 城市
 * @param keyword
 * @returns
 */
export const getCityByKeyword = (keyword: string) => {
    return axios({
        method: 'get',
        url: `/api/system/city/queryByKeyword/${keyword}`
    })
}
